﻿<!--这里对权限进行判断，在权限管理器中判断按钮是否有操作权限，进行展示-->
@using ML.Entity;
<div class="page-sidebar navbar-collapse collapse">
    <ul class="page-sidebar-menu page-sidebar-menu-light" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
        <li class="sidebar-toggler-wrapper">
            <div class="sidebar-toggler"></div>
        </li>
        <li class="start active homeindex">
            <a href="javascript:void(0)" url="/Home/Index">
                <i class="fa fa-cog fa-fw"></i>&nbsp;首页
            </a>
        </li>
        @{
            var userType = @ViewBag.UserType;
        }
        @if (userType == (int)UserTypeStatus.admin)
        {
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-home"></i><span class="title">系统管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/User/Index">
                            <i class="fa fa-user-circle"></i>用户管理
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/PlatFormCategory/Index">
                            <i class="fa fa-user-circle"></i>平台分类
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/Currency/Index">
                            <i class="fa fa-money"></i>汇率管理
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-shopping-bag"></i><span class="title">商户管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/Merchant/Index">
                            <i class="fa fa-podcast"></i>商户管理
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/Product/Index">
                            <i class="fa fa-product-hunt"></i>产品管理
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-first-order"></i><span class="title">订单管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/Order/Index">
                            <i class="fa fa-first-order"></i>订单管理
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-money"></i><span class="title">财务管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/CapitalAccount/Index">
                            <i class="fa fa-bar-chart"></i>资金账户
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/Settlement/Index">
                            <i class="fa fa-bars"></i>商户结算
                        </a>
                    </li>
                </ul>
            </li>
        }
        @if (userType == (int)UserTypeStatus.merchant)
        {
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-shopping-bag"></i><span class="title">商户管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/Merchant/UserIndex">
                            <i class="fa fa-podcast"></i>商户管理
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/ProductCategory/Index">
                            <i class="fa fa-podcast"></i>菜品分类
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/Product/UserIndex">
                            <i class="fa fa-product-hunt"></i>菜品管理
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-first-order"></i><span class="title">订单管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/Order/UserIndex">
                            <i class="fa fa-first-order"></i>订单管理
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:void(0);">
                    <i class="fa fa-money"></i><span class="title">资金管理</span><span class="arrow open"></span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="javascript:void(0)" url="/Receivables/Index">
                            <i class="fa fa-product-hunt"></i>收款管理
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" url="/Settlement/MerchantSettlment">
                            <i class="fa fa-bar-chart"></i>申请提现
                        </a>
                    </li>
                </ul>
            </li>
        }
    </ul>
</div>